package com.yunhe.java.day05;

import java.util.Scanner;
public class Ten {
    public static void main(String[] args) {
        int [] a= new int[5];
        Scanner sc=new Scanner(System.in);
        for(int i=0;i<a.length;i++){
            a[i]=sc.nextInt();}
       int max=a[0];
       int min=a[0];
       int sum=0;
        for(int i=0;i<a.length;i++){
            sum+=a[i];
            if (a[i]>max){
                max = a[i];}
            if (a[i]<min) {
                min = a[i];}
        }
        System.out.println(sum);
        System.out.println(max);
        System.out.print(min);
    }
}
